//领取邮戳的服务
import { Injectable } from '@angular/core';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/toPromise';
import axios from 'axios';
//url config here
import { ConfigService } from './config.service';
@Injectable()
export class getStampService{

    

	constructor(){
    }
    
    getStamp(phone,id){
        /*var res = {
            "data":{
                "code":2,
                "msg":"已领过"
            }
        };*/
        return axios({
            method:'post',
            url:"http://yxbsve.mmarket.com/index.php?c=wechat&a=state",
            data:{
                "phone":phone,
                "award":id
            },
            headers: {
                "accept": "application/json",
                "content-type": "application/json",
                "cache-control": "no-cache",
            }
        });
        //return res;
    }

}